<?php


namespace app\webs\model;


use think\Model;

class HyqModel extends Model
{
    protected $name = 'hyq';

    public function getImageAttr($imger)
    {
        return request()->domain() . $imger;
    }

    public function getImagesAttr($images)
    {
        $imageArr = explode(',',$images);
        if (count($imageArr) > 0){
            foreach ($imageArr as $key => $image){
                $imageArr[$key] = request()->domain() . $image;
            }
            return $imageArr;
        }
        return [];
    }

}